package icu.luoxi.mapper.master;

import icu.luoxi.model.entity.ScheduledTask;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 系统定时任务表 Mapper 接口
 * </p>
 *
 * @author 洛希极限
 * @since 2025-05-06
 */
public interface ScheduledTaskMapper extends BaseMapper<ScheduledTask> {

    int updateCronExpression(@Param("taskKey") String taskKey, @Param("cron") String cronExpression);

    int updateTaskStatus(@Param("taskKey") String taskKey, @Param("status") Integer status);

}
